<style lang="sass" scoped>
    img{
        width:200px;
    }
</style>
<template>
    <div class="container pd15">
        <el-form label-width="180px" class="demo-ruleForm">
            <el-form-item label="提现单号：" prop="withdrawNo">
                {{ruleForm.withdrawNo}}
            </el-form-item>
            <el-form-item label="分销商名称：" prop="companyName">
                {{ruleForm.companyName}}
            </el-form-item>
            <el-form-item label="提现金额：" prop="withdrawFee">
                {{ruleForm.withdrawFee}}
            </el-form-item>
            <el-form-item label="提后余额：" prop="balance">
                {{ruleForm.balance}}
            </el-form-item>
            <el-form-item label="凭证URL：" prop="credentialUrl">
                <img v-if="ruleForm.credentialUrl" :src="ruleForm.credentialUrl" alt="">
            </el-form-item>
            <el-form-item label="状态：" prop="status">
                {{ruleForm.status===0?'正在提现':'提现成功'}}
            </el-form-item>
            <el-form-item label="申请时间：" prop="applyTime">
                {{ruleForm.applyTime}}
            </el-form-item>
            <el-form-item label="处理时间：" prop="successTime">
                {{ruleForm.successTime}}
            </el-form-item>
            <el-form-item label="">
                <el-button @click="goBack()" class="ml20" type="primary" :plain="false" round>返回</el-button>
            </el-form-item>

        </el-form>
    </div>
</template>
<script>
    export default {
        components: {
        },
        data() {
            return {
                ruleForm: {
                    
                },
            }
        },
        watch: {},
        created() {
            if(this.$route.query.withdrawNo){
                this.getInfo();
            }
        },
        mounted() {
            this.$nextTick(() => { 
                
            });
        },
        methods: {
            goBack(){
                router.go(-1);
            },
            getInfo(){
                util.ajax({
                    url:config.baseApi + 'bookMall-admin/api/withdraw/getWithdrawRecordDetail',
                    data:{
                        withdrawNo:this.$route.query.withdrawNo
                    },
                    success:(data=>{
                        this.ruleForm = data.data;
                    })
                })
            }
        }
    };
</script>